//
//  InviteView.m
//  bitcoin
//
//  Created by caiyajun on 2018/6/13.
//  Copyright © 2018年 比特币. All rights reserved.
//

#import "InviteView.h"
@interface InviteView()



@end
@implementation InviteView
+ (instancetype)xib
{
    return [[NSBundle mainBundle] loadNibNamed:@"InviteView" owner:self options:nil][0];
}
- (void)awakeFromNib
{
    [super awakeFromNib];
    
    
    
    self.alpha = 1;
    self.frame = CGRectMake(0, ScreenHeight-121, ScreenWidth, 121);
    
    
}
- (IBAction)copyAction:(id)sender {
    UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
    pasteboard.string = self.invitesignlabel.text;
    [MBProgressHUD showSuccess:@"已复制到剪贴板"];
    
    
    
}
- (IBAction)submitAction:(UIButton *)sender {
    if (self.submitActionBlock) {
        self.submitActionBlock(sender.tag);
        
    }
}

@end
